From 68516139f354f10c8726c0cced46329fb6b0cbf2 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 21 Oct 2008 14:14:37 +0100 Subject: [PATCH] x86: Move some code out of IRQ-disabled section of context switch path. Signed-off-by: Keir Fraser --- xen/arch/x86/domain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c index 6e1498a0f1..87a636e529 100644 --- a/xen/arch/x86/domain.c +++ b/xen/arch/x86/domain.c @@ -1255,11 +1255,11 @@ void context_switch(struct vcpu *prev, struct vcpu *next) flush_tlb_mask(next->vcpu_dirty_cpumask); } - local_irq_disable(); - if ( is_hvm_vcpu(prev) && !list_empty(&prev->arch.hvm_vcpu.tm_list) ) pt_save_timer(prev); + local_irq_disable(); + set_current(next); if ( (per_cpu(curr_vcpu, cpu) == next) || is_idle_vcpu(next) ) -- 2.30.2